<script setup lang="ts">
  import { computed, ref, watch } from 'vue'

  const count = ref(0)

  const NCount = computed(() => {
    console.log('computed', count.value, '>>>')

    return count.value + 1
  })

  console.log(NCount.value, 'NCount>>>')

  watch(
    () => {
      console.log('watch', '>>>')

      return NCount.value
    },
    () => {}
  )
</script>

<template>
  订单
  <button @click="count++">add</button>
</template>
